package com.example.springbootlearn.testentity;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * @author caiji Mr. Li
 * @date 2020/4/16 22:15
 */
public class InputTest {

    public static void main(String[] args) throws IOException {
        int c;
        try (InputStream in = new LowerCaseInputStream(
                new BufferedInputStream(new FileInputStream("D:\\test.txt")))) {
            while ((c=in.read()) >0){
                System.out.print((char)c);
            }
        }
    }
}
